<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>查看合同订单</title>
    <%@ include file="/WEB-INF/views/include/head.jsp"%>
    <script src="${ctxStatic}/js/jquery-1.9.1.min.js"></script>
    <script src="${ctxStatic}/js/DateTimePicker.js"></script>
    <script src="${ctxStatic}/js/layer.js"></script>
    <script src="${ctxStatic}/js/style.js"></script>
    <link rel="stylesheet" href="${ctxStatic}/css/common_erp.css">
    <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css">
    <c:set value="<%=ResourcesUtil.getConfig(\"reserver_meterial_wait_accept\") %>" var="audit_10"/>
    <style type="text/css">
    
    </style>
    <script type="text/javascript">
    	$(function(){
    		thumbnail();
    	});
    </script>
</head>
<body>   
<div class="layerHeader clearfix">
	<p class="headerTitle"><spring:message code="contract_edit_viewOrder"/></p>
    <div class="headerButton clearfix">
    <shiro:hasPermission name="bigcargo:order:audit">
    	<button type="button" onclick="popup('800px','519px','${ctx}/bigcargo/order/audit?id=${bigcargoOrder.id }')"><spring:message code="contract_edit_audit"/></button>
    </shiro:hasPermission>
    	<%-- <c:if test="${bigcargoOrder.status==audit_10}"> --%>
    	<shiro:hasPermission name="bigcargo:order:edit">
        	<button type="button" onclick="window.location.href='${ctx}/bigcargo/order/editBigcargoOrder?id=${bigcargoOrder.id }'"><spring:message code="contract_edit_edit"/></button>
        </shiro:hasPermission>
        <%-- </c:if> --%>
        <button type="button" onclick="closeWin()"><spring:message code="btn_cancle"/></button>
    </div>
</div>

<div class="smOrderBox showHtml">
    <div class="items clearfix">
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_customerStyle"/></p>
            <input value="${bigcargoOrder.customerContractNO }">
        </div>
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_orderStatus"/></p>
            <input value="${fns:getDictName(bigcargoOrder.orderStatus) }">
        </div>
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_orderType"/></p>
            <input value="${fns:getDictName(bigcargoOrder.orderTypeCD)}">
        </div>
    </div>
    <div class="items clearfix">
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_customerName"/></p>
            <input value="${bigcargoOrder.ognizationName }">
        </div>
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_transportMode"/></p>
            <input value="${fns:getDictName(bigcargoOrder.contractTransportMode) }">
        </div>
        <div class="col-33 clearfix">
            <p class="tit"><spring:message code="contract_edit_file"/></p>
            <a id="superLink" href="${bigcargoOrder.filePath }${bigcargoOrder.uploadFileName }">${bigcargoOrder.uploadFileName }</a>
        </div>
        
    </div>
    <div class="clearfix">
        <div class="col-66">
            <div class="items clearfix">        	
                <div class="col-50 clearfix">
                    <p class="tit"><spring:message code="contract_edit_issueDate"/></p>
                    <input value="<fmt:formatDate value="${bigcargoOrder.contractIssueDate }" pattern="yyyy-MM-dd" />">
                </div>
                <div class="col-50 clearfix">
            		<p class="tit"><spring:message code="contract_edit_balanceMode"/></p>
            		<input value="${fns:getDictName(bigcargoOrder.contractBalanceMode) }">
        		</div>               
            </div>
            <div class="items clearfix">
                <div class="col-50 clearfix">
                    <p class="tit"><spring:message code="contract_edit_creator"/></p>
                    <input value="${bigcargoOrder.createBy.firstName }">
                </div>
                <div class="col-50 clearfix">
                    <p class="tit"><spring:message code="contract_edit_date"/></p>
                    <input value="<fmt:formatDate value="${bigcargoOrder.createDate }" pattern="yyyy-MM-dd" />">
                </div>
            </div>
        </div>   
        <div class="col-33 items clearfix">
            <p class="tit"><spring:message code="contract_edit_remark"/></p>
            <textarea style="width:230px;">${bigcargoOrder.remark }</textarea>
        </div>
    </div>
</div>
<div class="tableArea showHtml">
    <div class="tableScrollSm" style="overflow: auto;width: 991px">
        <table cellpadding="0" class="tableHead">
            <thead>
            <tr>
                <th><p class="tab-ckddkstp"><spring:message code="contract_edit_styleImage"/></p></th>
                <th><p class="width-145px"><spring:message code="contract_edit_styleNoName"/></p></th>
                <th><p class="tab-ckddlb"><spring:message code="contract_edit_styleType"/></p></th>
                <!-- <th><p class="tab-ckddml">面料</p></th> -->
                <th><p class="tab-ckddhb"><spring:message code="contract_edit_styleCurrency"/></p></th>
                <th><p class="tab-ckddhl"><spring:message code="contract_edit_styleExchangeRate"/></p></th>
                <th><p class="tab-ckdddj"><spring:message code="contract_edit_stylePrice"/></p></th>
                <th><p class="tab-ckddsl"><spring:message code="contract_edit_styleSize"/></p></th>
                <th><p class="tab-ckddje"><spring:message code="contract_edit_styleAmount"/></p></th>
                <th><p class="tab-ckddje"><spring:message code="contract_edit_delivery"/></p></th>
                <th><p class="tab-ckddje"><spring:message code="contract_edit_lastShip"/></p></th>
                
            </tr>
            </thead>
        </table>
        <table cellpadding="0" class="tableBody">
            <tbody>
            <c:forEach items="${bigcargoOrder.bigcargoOrderList }" var="style">
            <tr>
                <td><p class="tab-ckddkstp">
                	<img class="tableImg" style="width: 65px;height: 65px" src="<c:if test="${style.styleFile!=null&&style.styleFile!='' }">${style.styleFile }</c:if><c:if test="${style.styleFile==null||style.styleFile=='' }">${ctxStatic}/images/pic-none.jpg</c:if>">
                	<img class="posImg" style="width: 165px;height: 165px;margin-left: 20px;" src="<c:if test="${style.styleFile!=null&&style.styleFile!='' }">${style.styleFile }</c:if><c:if test="${style.styleFile==null||style.styleFile=='' }">${ctxStatic}/images/pic-none.jpg</c:if>">
                </p></td>
                <td><p class="width-145px">${style.styleCustomerNo }<br>${style.styleNameCN }</p></td>
                <td><p class="tab-ckddlb">${fns:getDictName(style.styleCatgoryCD) }</p></td>
                <%-- <td><p class="tab-ckddml">${style.materialCode }<br>${style.materialName }</p></td> --%>
                <td><p class="tab-ckddhb">${fns:getDictName(style.indentCurrencyCD) }</p></td>
                <td><p class="tab-ckddhl"><fmt:formatNumber value="${style.indentExchangeRate }" pattern="#,##0.000#"/></p></td>
                <td><p class="tab-ckdddj"><fmt:formatNumber value="${style.indentPrice }" pattern="#,##0.00#"/></p></td>
                <td><p class="tab-ckddsl"><fmt:formatNumber value="${style.indentQuantity }" pattern="#,##0"/></p></td>
                <td><p class="tab-ckddje"><fmt:formatNumber value="${style.indentAmount }" pattern="#,##0.00#"/></p></td>
                <td><p class="tab-ckddje"><fmt:formatDate value="${style.indentDeliveryDate }" pattern="yyyy-MM-dd" /></p></td>
                <td><p class="tab-ckddje"><fmt:formatDate value="${style.indentLastShipDate }" pattern="yyyy-MM-dd" /></p></td>
                
            </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>
<script>
	window.onload = function(){
	$('.tableScrollSm').css('height','430px')
	$('td input').each(function(){
		var tdH = $(this).parents('td').height()
		$(this).css('height',tdH)
		})
	}
	var tableW = $('.tableHead').outerWidth();
	$('.tableScroll').css('width',tableW + 18 + 'px')
$('.showHtml').find('input,select,textarea').attr('disabled','disabled')
</script>
</body>
</html>
